package com.accompany.service;

import com.accompany.entity.Transaction;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 交易记录表 服务类
 * </p>
 *
 * @author DC
 * @since 2024-12-26
 */
public interface TransactionService extends IService<Transaction> {

    Page<Transaction> getPaginatedTransactions(Integer page, Integer size);

    List<Transaction> getAllTransactions();

    Transaction getTransactionById(Long id);

    void updateTransaction(Transaction transaction);

    void deleteTransaction(Long id);

    void createTransaction(Transaction transaction);
}
